package org.sfx.rich

import javafx.stage.Window
import org.sfx.geometry.Point2D
import org.sfx.geometry.Bounds2D

class RichWindow(underlying: Window) {
  def minPoint: Point2D = Point2D(underlying.getX(), underlying.getY())

  def bounds: Bounds2D = Bounds2D(
      underlying.getX(), underlying.getY(),
      underlying.getX() + underlying.getWidth(), underlying.getY() + underlying.getHeight())
}
